﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RndMaterialDisposalService.Models
{
    [Table("OutsourcingProcessingBusinessData")]
    public class OutsourcingProcessingBusinessDataModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid? SysId { get; set; }
        /// <summary>
        /// 流程编号
        /// </summary>
        public string? ProcessFolio { get; set; }
        /// <summary>
        /// 流程实例号
        /// </summary>
        public string? ProcInstId { get; set; }
        /// <summary>
        /// 父流程实例号
        /// </summary>
        public string? FatherProcInstId { get; set; }
        /// <summary>
        /// 加工类型
        /// </summary>
        public string? ProcessingType { get; set; }
        /// <summary>
        /// 原物料编码
        /// </summary>
        public string? RawMaterialCode { get; set; }
        /// <summary>
        /// 原产品型号
        /// </summary>
        public string? RawProductType { get; set; }
        /// <summary>
        /// 原生产厂家
        /// </summary>
        public string? RawManufacturer { get; set; }
        /// <summary>
        /// 新物料编码
        /// </summary>
        public string? NewMaterialCode { get; set; }
        /// <summary>
        /// 新产品型号
        /// </summary>
        public string? NewProductType { get; set; }
        /// <summary>
        /// 新生产厂家
        /// </summary>
        public string? NewManufacturer { get; set; }
        /// <summary>
        /// 单板/机柜编码
        /// </summary>
        public string? TrialBoardCabinetCode { get; set; }
        /// <summary>
        /// 单板/机柜型号
        /// </summary>
        public string? SingleBoardCabinetType { get; set; }
        /// <summary>
        /// 试用成品数量
        /// </summary>
        public string? TrialFinishedProductCount { get; set; }
        /// <summary>
        /// 试用物料存放位置
        /// </summary>
        public string? ProbationMaterialsPosition { get; set; }
        /// <summary>
        /// 元件位置
        /// </summary>
        public string? ElementPositioning { get; set; }
        /// <summary>
        /// 加工地点
        /// </summary>
        public string? ProcessingLocation { get; set; }
        /// <summary>
        /// OEM
        /// </summary>
        public bool? Oem { get; set; }
        /// <summary>
        /// 试制物料备料方
        /// </summary>
        public string? MaterialPreparationParty { get; set; }
        /// <summary>
        /// 试用加工过程重点关注事项
        /// </summary>
        public string? KeyConcerns { get; set; }
        /// <summary>
        /// 指定产品线
        /// </summary>
        public string? ProductLine { get; set; }
        /// <summary>
        /// 计划员-责任人员
        /// </summary>
        public string? ResponsibilityPlanner1 { get; set; }
        /// <summary>
        /// 库房人员-责任人员
        /// </summary>
        public string? ResponsibilityPlanner2 { get; set; }
        /// <summary>
        /// 外协SQE-责任人员
        /// </summary>
        public string? ResponsibilityPlanner3 { get; set; }
        /// <summary>
        /// 外协回货物控员-责任人员
        /// </summary>
        public string? ResponsibilityPlanner4 { get; set; }
        /// <summary>
        /// 入库员-责任人员
        /// </summary>
        public string? ResponsibilityPlanner5 { get; set; }
        /// <summary>
        /// 任务令/PO号-Task1
        /// </summary>
        public string? TaskOrderPO { get; set; }
        /// <summary>
        /// 任务令数量-Task1
        /// </summary>
        public string? TaskOrderCount { get; set; }
        /// <summary>
        /// 产品编码-Task1
        /// </summary>
        public string? TaskProductCode { get; set; }
        /// <summary>
        /// 物料是否齐套-Task1
        /// </summary>
        public bool? IsMaterialKitting { get; set; }
        /// <summary>
        /// 产品编码-Task2
        /// </summary>
        public string? Task2ProductCode { get; set; }
        /// <summary>
        /// 本次加工数量-Task2
        /// </summary>
        //public string? Task2ThisProcessingCount { get; set; }
        /// <summary>
        /// 累计加工数量-Task2
        /// </summary>
        //public string? Task2AccumulatedProcessingCount { get; set; }
        /// <summary>
        /// 是否完成-Task2
        /// </summary>
        //public bool? Task2IsComplete { get; set; }
        /// <summary>
        /// 外协加工数量-Task2
        /// </summary>
        public string? Task2OutsourcingProcessingCount { get; set; }
        /// <summary>
        /// 不合格数量-Task2
        /// </summary>
        public string? Task2UnqualifiedCount { get; set; }
        /// <summary>
        /// 是否与试制物料有关-Task2
        /// </summary>
        public bool? Task2IsTrialProductionMaterialsApply { get; set; }
        /// <summary>
        /// 分析附件-Task2
        /// </summary>
        public string? Task2AnalyzeAttachments { get; set; }
        /// <summary>
        /// 序号-Task2
        /// </summary>
        public string? Task2SerialNumber { get; set; }
        /// <summary>
        /// 不良品条码-Task2
        /// </summary>
        public string? Task2DefectiveProductsCode { get; set; }
        /// <summary>
        /// 故障描述-Task2
        /// </summary>
        public string? Task2FaultDescription { get; set; }
        /// <summary>
        /// 分析责任人-Task2
        /// </summary>
        public string? Task2AnalysisResponsiblePerson { get; set; }
        /// <summary>
        /// 原因分析-Task3
        /// </summary>
        public string? Task3AnalyzeAttachments { get; set; }
        /// <summary>
        /// 是否与试用物料有关-Task3
        /// </summary>
        public bool? Task3IsTrialProductionMaterialsApply { get; set; }
        /// <summary>
        /// 产品编码-Task4
        /// </summary>
        public string? Task4ProductCode { get; set; }
        /// <summary>
        /// 回货数量-Task4
        /// </summary>
        public string? Task4ReturnQuantity { get; set; }
        /// <summary>
        /// 本次回货数量-Task4
        /// </summary>
        //public string? Task4ThisReturnCount { get; set; }
        /// <summary>
        /// 累计回货数量-Task4
        /// </summary>
        //public string? Task4AccumulatedReturnsCount { get; set; }
        /// <summary>
        /// 是否完成-Task4
        /// </summary>
        //public bool? Task4IsComplete { get; set; }
        /// <summary>
        /// 产品编码-Task5
        /// </summary>
        public string? Task5ProductCode { get; set; }
        /// <summary>
        /// 入库数量-Task5
        /// </summary>
        public string? Task5ReceiptQuantity { get; set; }
        /// <summary>
        /// 本次入库数量-Task5
        /// </summary>
        //public string? Task5ThisWarehousingCount { get; set; }
        /// <summary>
        /// 累计入库数量-Task5
        /// </summary>
        //public string? Task5AccumulatedReceiptCount { get; set; }
        /// <summary>
        /// 是否完成-Task5
        /// </summary>
        //public bool? Task5IsComplete { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? LastUpdatedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? LastUpdateDate { get; set; }
    }
}
